import fetch from '@/utils/request'

export function funcList(query) {
  return fetch({
    url: '/api/adminCrm/platformFunctionConfig/list',
    method: 'get',
    params: query
  })
}

export function addFunc(obj) {
  return fetch({
    url: '/api/adminCrm/platformFunctionConfig/add',
    method: 'post',
    data: obj
  })
}

export function deleteFunc(obj) {
  return fetch({
    url: '/api/adminCrm/platformFunctionConfig/delete',
    method: 'post',
    data: obj
  })
}

export function updateFunc(obj) {
  return fetch({
    url: '/api/adminCrm/platformFunctionConfig/update',
    method: 'post',
    data: obj
  })
}

